package com.labor_management_system.Entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * 
 * @TableName labor_engineering
 */
@TableName(value ="labor_engineering")
@Data
//劳务工程
public class LaborEngineering implements Serializable {
    /**
     * 
     */
    @TableId
    @JsonProperty("laborEngineeringId")
    private String laborEngineeringId;

    /**
     * 
     */
    @JsonProperty("enterprisesId")
    private String enterprisesId;
    @JsonProperty("project_name")
    private String projectName;
    @JsonProperty("enterprises_name")
    private String enterprisesName;
    /**
     * 
     */
    @JsonProperty("projectId")
    private String projectId;

    /**
     * 
     */
    @JsonProperty("filingCycle1")
    private Long filingCycle1;

    /**
     * 
     */
    @JsonProperty("filingCycle2")
    private Long filingCycle2;

    /**
     * 
     */
    @JsonProperty("declarant")
    private String declarant;

    /**
     * 
     */
    @JsonProperty("filingDate")
    private Long filingDate;

    /**
     *
     *
     */
    @JsonProperty("proofOfDeclaration")
    private String proofOfDeclaration;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        LaborEngineering other = (LaborEngineering) that;
        return (this.getLaborEngineeringId() == null ? other.getLaborEngineeringId() == null : this.getLaborEngineeringId().equals(other.getLaborEngineeringId()))
            && (this.getEnterprisesId() == null ? other.getEnterprisesId() == null : this.getEnterprisesId().equals(other.getEnterprisesId()))
            && (this.getEnterprisesName() == null ? other.getEnterprisesName() == null : this.getEnterprisesName().equals(other.getEnterprisesName()))
            && (this.getProjectName() == null ? other.getProjectName() == null : this.getProjectName().equals(other.getProjectName()))
            && (this.getProjectId() == null ? other.getProjectId() == null : this.getProjectId().equals(other.getProjectId()))
            && (this.getFilingCycle1() == null ? other.getFilingCycle1() == null : this.getFilingCycle1().equals(other.getFilingCycle1()))
            && (this.getFilingCycle2() == null ? other.getFilingCycle2() == null : this.getFilingCycle2().equals(other.getFilingCycle2()))
            && (this.getDeclarant() == null ? other.getDeclarant() == null : this.getDeclarant().equals(other.getDeclarant()))
            && (this.getFilingDate() == null ? other.getFilingDate() == null : this.getFilingDate().equals(other.getFilingDate()))
            && (this.getProofOfDeclaration() == null ? other.getProofOfDeclaration() == null : this.getProofOfDeclaration().equals(other.getProofOfDeclaration()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getLaborEngineeringId() == null) ? 0 : getLaborEngineeringId().hashCode());
        result = prime * result + ((getEnterprisesId() == null) ? 0 : getEnterprisesId().hashCode());
        result = prime * result + ((getProjectId() == null) ? 0 : getProjectId().hashCode());
        result = prime * result + ((getFilingCycle1() == null) ? 0 : getFilingCycle1().hashCode());
        result = prime * result + ((getFilingCycle2() == null) ? 0 : getFilingCycle2().hashCode());
        result = prime * result + ((getDeclarant() == null) ? 0 : getDeclarant().hashCode());
        result = prime * result + ((getFilingDate() == null) ? 0 : getFilingDate().hashCode());
        result = prime * result + ((getProjectName() == null) ? 0 : getProjectName().hashCode());
        result = prime * result + ((getEnterprisesName() == null) ? 0 : getEnterprisesName().hashCode());
        result = prime * result + ((getProofOfDeclaration() == null) ? 0 : getProofOfDeclaration().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", laborEngineeringId=").append(laborEngineeringId);
        sb.append(", enterprisesId=").append(enterprisesId);
        sb.append(", projectId=").append(projectId);
        sb.append(", filingCycle1=").append(filingCycle1);
        sb.append(", filingCycle2=").append(filingCycle2);
        sb.append(", declarant=").append(declarant);
        sb.append(", filingDate=").append(filingDate);
        sb.append(", enterprisesName=").append(enterprisesName);
        sb.append(", projectName=").append(projectName);
        sb.append(", proofOfDeclaration=").append(proofOfDeclaration);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}